package test.generic;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;

public class GenericList<T>
{
	public static <K, V> HashMap<K, V> newInstance()
	{
		return new HashMap<K, V>();
	}

	public static <T> ArrayList<T> list(T... objs)
	{
		ArrayList<T> collection = new ArrayList<T>();
		Collections.addAll(collection, objs);
		return collection;
	}

	ArrayList<T> listNonStatic(T... objs)
	{
		ArrayList<T> collection = new ArrayList<T>();
		Collections.addAll(collection, objs);
		return collection;
	}
}
